  
  <div id="sidebar">
  <div id="menu5">
		<ul>
  <?
   if(belongsToGroup('user'))
   {
  // 	echo "<li>".anchor('myaccount','My Account')."</li>";
   echo "<li>".anchor('myaccount/profile','My Account')."</li>";
    echo "<li>".anchor('auth/changepassword','Change Password')."</li>";
    echo "<li>".anchor('searchorders/selectorders','My Orders')."</li>";
    foreach ($menu as $menuitem)
	  {
	  	echo "<li>".anchor($menuitem->link_to,$menuitem->link_name)."</li>";
	  } 
   }
   else
   {
   	  foreach ($menu as $menuitem)
	  {
	  echo "<li>".anchor($menuitem->link_to,$menuitem->link_name)."</li>";
	  }  
   }
 
  ?>

    </ul>
	</div>
  </div>
			
		